package cn.tk.model.pojo.mr.flow;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Created by denglw on 2021/7/19.<br/>
 * Desc: 话术节点对象
 */
@Data @NoArgsConstructor
public class ReplyNodeDTO {

    /**
     * 话术节点id
     */
    private Long nodeId;

    /**
     * 默认的回复话术id
     */
    private Long defaultReplyId;

    /**
     * 连贯话术id
     */
    private Long outterReplyId;

    /**
     * 跳回话术id
     */
    private Long innerReplyId;

    /**
     * 监听类型：1按键监听
     */
    private Integer listener;

    /**
     * 是否触发短信：0否 1是
     */
    private Boolean smsSend;

    /**
     * 节点最大重复次数
     */
    private Integer repeatNum;

    /**
     * 达到最大重复次数后的兜底话术id
     */
    private Long maxRepeatReplyId;

    /**
     * 节点行为动作
     */
    private ReplyNodeAction action;

    /**
     * 节点超时回复列表
     */
    private List<ReplyNodeTimeout> timeouts;

    /**
     * 不响应问题列表
     */
    private List<ReplyNodeFilter> filters;

    public ReplyNodeDTO(Long nodeId, Long defaultReplyId, Long outterReplyId, Long innerReplyId,
                        Integer listener, Boolean smsSend, Integer repeatNum, Long maxRepeatReplyId) {
        this.nodeId = nodeId;
        this.defaultReplyId = defaultReplyId;
        this.outterReplyId = outterReplyId;
        this.innerReplyId = innerReplyId;
        this.listener = listener;
        this.smsSend = smsSend;
        this.repeatNum = repeatNum;
        this.maxRepeatReplyId = maxRepeatReplyId;
    }
}
